clear all

x=[-pi:0.001:pi]
f1=sin(x).*cos(x);
f2=sin(2*x);

plot(x,f1,'b','linewidth',2);
hold on
plot(x,f2,'g','linewidth',2)
grid on
axis square
xlabel('x')
legend('f_1(x)','f_2(x)')